package com.demo.model;

import java.util.Date;

public class Order implements Comparable<Long> {
  private Long id;

  private String name;

  private String type;

  private Date gmtCreate;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Date getGmtCreate() {
    return gmtCreate;
  }

  public void setGmtCreate(Date gmtCreate) {
    this.gmtCreate = gmtCreate;
  }

  @Override
  public int compareTo(Long o) {
    Long l = o % 3;
    return l.intValue();
  }
}
